package com.songlanyun.modules.studying.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.studying.entity.Studying;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface StudyingDao extends BaseMapper<Studying> {
    IPage<Studying> queryPage(IPage<Studying> page, @Param("params") Map<String, Object> params);

    List<Studying> studyingLately(@Param("apiUserId") Long apiUserId, @Param("limit") Integer limit);

    IPage<Studying> studyingLatelyPage(IPage<Studying> page, @Param("params") Map<String, Object> params);
}
